import Vue from 'vue'
import App from './App.vue'
import VueJsonp from 'vue-jsonp'

Vue.config.productionTip = false

import VueRouter from 'vue-router'
Vue.use(VueRouter)
import Recommend from './components/Recommend.vue'
import Discover from './components/Discover.vue'
import Search from './components/Search.vue'
import LatestSong from './components/LatestSong.vue'
import LatestMV from './components/LatestMV.vue'
import result from './components/result.vue'
import playlists from './components/playlists.vue'
import Video from './components/Video.vue'
import Video1 from './components/Video1.vue'
let router = new VueRouter({
  routes:[
    {
      path: "/",
      component:Discover
    },
    {
      path: "/Recommend",
      component:Recommend
    },
    {
      path: "/Discover",
      component:Discover
    },
    {
      path: "/Search",
      component:Search
    },
    {
      path: "/LatestSong",
      component:LatestSong
    },
    {
      path: "/LatestMV",
      component:LatestMV
    },
    {
      path: "/result",
      component:result
    },
    {
      path: "/playlists",
      component:playlists
    },
    {
      path: "/Video",
      component:Video
    },
    {
      path: "/Video1",
      component:Video1
    }
  ]
})
//导入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
